home *** CD-ROM | disk | FTP | other *** search
/ Network CD 1 / Network CD.iso / ncomm / scripts / rxread1.ncomm < prev    next >
Text File  |  1993-05-24  |  473b  |  12 lines

  1. /* Demonstrates a way to read serial chars with immediate response */
  2. /* This scripts sends all data that is received within NComm       */
  3. /* to the current CLI window. Must be executed with the RX command */
  4.  
  5. options results /* Turn on result codes */
  6.  
  7. do forever /* for (;;) */
  8.    address 'ncomm' wait /* Wait for anything, return current line */
  9.    if RC == 20 then exit /* Exit if user selected Quit NComm */
  10.    say result           /* Write line to CLI window */
  11. end
  12.